template <class T>
inline T *ResourceManager::get(const std::string &name) const
{
    bool find = false;
    unsigned i;
    for(i=0; i<_resources.size() && !find; i++)
    {
        if(_resources[i]->getName() == name)
            find = true;
    }
    if(find)
    {
        _resources[i-1]->addRef();
        return static_cast<T*>(_resources[i-1]);
    }
    else return NULL;
}
